package org.paradise.pojo;

import java.io.Serializable;
import java.sql.Date;
import java.util.Objects;

public class GiftRecord implements Serializable {
    private Integer id;
    private String name;
    private Date time;
    private Integer gshopping;
    private Integer num;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getGshopping() {
        return gshopping;
    }

    public void setGshopping(Integer gshopping) {
        this.gshopping = gshopping;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GiftRecord that = (GiftRecord) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(name, that.name) &&
                Objects.equals(time, that.time) &&
                Objects.equals(gshopping, that.gshopping) &&
                Objects.equals(num, that.num);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, time, gshopping, num);
    }
}
